﻿package dut.ir.lxb.weibo.util;

public enum ActionType
{
	/**
	 * 定义三种行为类型，点赞、评论、转发
	 */
	LIKE("LIKE"), COMMENT("COMMENT"), FORWARD("FORWARD");
	
	String type;
	
	private ActionType(String type)
	{
		this.type = type;
	}
	
	@Override
	public String toString()
	{
		if(this.type.equals("LIKE"))
			return "like";
		else if(type.equals("COMMENT"))
			return "comment";
		else 
			return "forward";
	}
	
	
}
